package com.youliao.spring5;

/**
 * @Author Dali
 * @Date 2021/5/3 17:34
 * @Version 1.0
 * @Description
 */
//使用有参数的构造注入
public class Orders {
    //属性
    private String oname;
    private String address;

    //属性对应的有参构造函数
    public Orders(String oname, String address) {
        this.oname = oname;
        this.address = address;
    }
    public void ordersTest(){
        System.out.println(oname+":"+address);
    }
}
